WPDiscourse\DiscoursePublish\DiscoursePublish D

Total Complexity 129
Dependencies 4
Dependents 2
Total lines 871
Lines of code 502
Logical lines of code 271
Comment lines 255
Methods 27
Properties 4

Methods 27

Method Rating Maintainability Complexity Lines of code
sync_to_discourse_work()
D
22
37 187
publish_post_after_save()
B
43 21 38
validate_response_body()
A
53 8 22
get_response_attributes()
S
52 7 25
xmlrpc_publish_post_to_discourse()
S
54 7 19
dc_add_post_meta()
S
53 5 23
handle_error()
S
53 5 21
tags_param()
S
60 4 13
dc_get_post_meta()
S
58 3 16
get_allowed_post_types()
S
67 3 8
validate_update_post_body()
S
78 3 3
setup_options()
S
67 3 8
validate_create_post_body()
S
78 3 3
remote_post()
S
64 3 9
create_bad_response_notifications()
S
61 2 14
pin_discourse_topic()
S
54 1 20
sync_to_discourse()
S
66 2 8
save_topic_blog_id()
S
60 1 15
topic_blog_id_exists()
S
64 2 10
__construct()
S
64 2 9
handle_notice()
S
61 1 11
post_is_enqueued()
S
80 1 3
post_is_deleted()
S
80 1 3
sync_to_discourse_without_lock()
S
79 1 3
is_valid_sync_post_type()
S
72 1 5
sanitize_title()
S
80 1 3
setup_logger()
S
80 1 3